package com.yg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yg.config.result.R;
import com.yg.entity.readAndWriteTemplates.TeacherResearchPapersPlus;
import com.yg.entity.singleEntity.TeacherResearchPapers;

import javax.servlet.http.HttpServletResponse;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * <p>
 * 对应sheet08，此表为教师发表校验论文表
 服务类
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeacherResearchPapersService extends IService<TeacherResearchPapers> {
    //excel录入
    R readExcel(FileInputStream fileInputStream);

    //excel导出
    R writeExcel(TeacherResearchPapersPlus teacherResearchPapersPlus, HttpServletResponse response) throws IOException;

    //查询教师所有信息
    R selectAllResearchPapersInfo(int current,int size);

    //条件查询
    R researchPapersConditionalQuery(String s,String current,String size);

    //更新信息
    R updateResearchPapersInfo(String s);

    //删除
    R deleteResearchPapersById(String id);

    //添加校验论文
    R insertResearchPapers(String teacherResearchPapers);

}
